package com.alibaba.csp.sentinel.dashboard.rule.nacos.cluster;

public class ClientConfig {

    private String ip;

    private Integer port;

    private Integer requestTimeout;

    public ClientConfig(String ip, Integer port, Integer requestTimeout) {
        this.ip = ip;
        this.port = port;
        this.requestTimeout = requestTimeout;
    }

    public String getMachineId() {
        return ip + "@" + port;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getRequestTimeout() {
        return requestTimeout;
    }

    public void setRequestTimeout(Integer requestTimeout) {
        this.requestTimeout = requestTimeout;
    }
}